/**
 * 
 */
package com.example.radioclub.tasks.http;

import com.example.radioclub.data.Constants;
import com.example.radioclub.interfaces.http.IHttpImageDownloader;

import android.graphics.drawable.Drawable;
import android.os.AsyncTask;

/**
 * @author wizard
 *
 */
public class HttpImageDownloader extends AsyncTask<String, Void, Drawable>{
	private final String TAG = Constants.APP_TAG + "Http Image Downloader";
	private IHttpImageDownloader listener;
	
	public HttpImageDownloader(IHttpImageDownloader listener) {
		this.listener = listener;
	}
	
	@Override
	protected Drawable doInBackground(String... params) {
		// TODO Auto-generated method stub
		return null;
	}
	
	@Override
	protected void onPostExecute(Drawable result) {
		// TODO Auto-generated method stub
		this.listener.onImageDownloadFinished(result);
		super.onPostExecute(result);
	}

}
